﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using ECare.Client;
using ECare.BUS.Data;
using ECare.BUS;

namespace ECare.Client.frms
{
    public partial class frmStorageQuery : frmGridTemplate
    {
        public frmStorageQuery()
        {
            InitializeComponent();

            this.Load += frmStorageQuery_Load;

        }

        void frmStorageQuery_Load(object sender, EventArgs e)
        {
            //throw new NotImplementedException();
     

            resource_id_column.DataSource = ResourcesHelper.GetAllResources();
            resource_id_column.DisplayMember = "ResourceName";
            resource_id_column.ValueMember = "ResourceId";

            this.grdStorage.DataSource = ResourcesHelper.SearchStorage();

        }
    }
}
